<?php $this->beginContent('//layouts/main'); ?>
<header>
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <?php echo CHtml::link('Pricemon', array('app/home'), array('class' => 'brand')); ?>
                
                <?php
                $this->widget('zii.widgets.CMenu', array(
                    'items' => array(
                        array('label' => 'Groups', 'url' => array('/group/index')),
                        array('label' => 'Users', 'url' => array('/user/index')),
                        array('label' => 'Settings', 'url' => array('/app/configure')),
                    ),
                    'htmlOptions' => array('class' => 'nav pull-left'),
                    'encodeLabel' => false,
                ));
                ?>
                
                <?php
                $this->widget('zii.widgets.CMenu', array(
                    'items' => array(
                        array('label' => '<i class="icon-flag icon-white"></i> Help', 'url' => array('/app/help')),
                    ),
                    'htmlOptions' => array('class' => 'nav pull-right'),
                    'encodeLabel' => false,
                ));
                ?>

                <?php echo CHtml::link('Log Out', array('app/logout'), array('class' => 'btn btn-small btn-primary pull-right')); ?>
                <li class="divider-vertical pull-right"></li>
                <p class="navbar-text pull-right">Logged in as <?php echo Yii::app()->user->fullname; ?> of <?php echo Yii::app()->user->instance->group->name; ?></p>    
            </div>
        </div>
    </div>
</header>

<section role="main">
    <div class="container">
        <div class="row">
            <?php echo $content; ?>
        </div>
    </div>
    <div class="pad"></div>
</section>

<footer id="pagefoot">
    <div class="container">
        <div class="row">
            <div class="span12">
            </div>
        </div>
    </div>
</footer>

<div id="dialog" class="modal hide fade"></div>
<?php $this->endContent(); ?>